<?PHP $action_url = ""; ?>
		<form action="<?=$action_url?>" method="get" onsubmit="return Adjust('q')">
        <div id="nv">
        	<h1><a href="http://www.gouwutu.com"><img src="../images/sslogo.gif" alt="购物兔，返现就这么简单" title="购物兔，返现就这么简单" /></a></h1>
    		<b>淘宝返利</b>
    		<a href="../mall">百家商城</a>
  		</div>
        <div id="fm">
          <p class="gwt_ss"><input type="text" class="smallinput" name="q" id="q" onblur="if(this.value==''){this.value='输入您想要的宝贝名称或网址~';this.style.color = '#BABABA';}" onfocus="if(this.value=='输入您想要的宝贝名称或网址~'){this.value='';this.style.color = '#333';} this.select();" accesskey="s" value="<?php if($q==""){echo "输入您想要的宝贝名称或网址~";}else{echo $q;}?>" /></p>
          <p class="btn_wr"><input type="submit" name="Submit" class="sssp" value="" /></p>
          <input type="hidden" name="id" id="id" value="" />
          <input type="hidden" name="url" id="url" value="" />
      	</div>
        
		<div class="searchmain">
			<div class="searchlist"><ul><li style="width:170px; margin-left:10px">价格：<input name="start_price" type="text" class="smallinput" style="width:40px;" value="<?=$start_price?>" onKeyUp="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')" /> - <input name="end_price" type="text" class="smallinput" style="width:40px;" value="<?=$end_price?>" onKeyUp="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')" /></li><li style="width:100px; margin-left:10px;" ><input name="guarantee" type="checkbox" value="true" <?php if($guarantee=="true") echo " checked";?> /><label>七天退换</label></li><li style="margin-left:10px;">所在地：<select name="area" class="smallinput">
			<option value=''<?php if ($area == "") echo "selected"; ?>>所有地区</option>
			<option value='江苏,浙江,上海'<?php if ($area == "江苏,浙江,上海") echo " selected"; ?>>江浙沪</option>
			<option value='广州,深圳,中山,珠海,佛山,东莞,惠州'<?php if ($area == "广州,深圳,中山,珠海,佛山,东莞,惠州") echo " selected"; ?>>珠三角</option>
			<option value='香港,澳门,台湾'<?php if ($area == "香港,澳门,台湾") echo " selected"; ?>>港澳台</option>
			<option value='北京'<?php if ($area == "北京") echo " selected"; ?>>北京</option>
			<option value='上海'<?php if ($area == "上海") echo " selected"; ?>>上海</option>
			<option value='杭州'<?php if ($area == "杭州") echo " selected"; ?>>杭州</option>
			<option value='广州'<?php if ($area == "广州") echo " selected"; ?>>广州</option>
			<option value='深圳'<?php if ($area == "深圳") echo " selected"; ?>>深圳</option>
			<option value='南京'<?php if ($area == "南京") echo " selected"; ?>>南京</option>
			<option value='武汉'<?php if ($area == "武汉") echo " selected"; ?>>武汉</option>
			<option value='天津'<?php if ($area == "天津") echo " selected"; ?>>天津</option>
			<option value='成都'<?php if ($area == "成都") echo " selected"; ?>>成都</option>
			<option value='哈尔滨'<?php if ($area == "哈尔滨") echo " selected"; ?>>哈尔滨</option>
			<option value='重庆'<?php if ($area == "重庆") echo " selected"; ?>>重庆</option>
			<option value='宁波'<?php if ($area == "宁波") echo " selected"; ?>>宁波</option>
			<option value='无锡'<?php if ($area == "无锡") echo " selected"; ?>>无锡</option>
			<option value='济南'<?php if ($area == "济南") echo " selected"; ?>>济南</option>
			<option value='苏州'<?php if ($area == "苏州") echo " selected"; ?>>苏州</option>
			<option value='温州'<?php if ($area == "温州") echo " selected"; ?>>温州</option>
			<option value='青岛'<?php if ($area == "青岛") echo " selected"; ?>>青岛</option>
			<option value='沈阳'<?php if ($area == "沈阳") echo " selected"; ?>>沈阳</option>
			<option value='福州'<?php if ($area == "福州") echo " selected"; ?>>福州</option>
			<option value='西安'<?php if ($area == "西安") echo " selected"; ?>>西安</option>
			<option value='长沙'<?php if ($area == "长沙") echo " selected"; ?>>长沙</option>
			<option value='合肥'<?php if ($area == "合肥") echo " selected"; ?>>合肥</option>
			<option value='南宁'<?php if ($area == "南宁") echo " selected"; ?>>南宁</option>
			<option value='南昌'<?php if ($area == "南昌") echo " selected"; ?>>南昌</option>
			<option value='郑州'<?php if ($area == "郑州") echo " selected"; ?>>郑州</option>
			<option value='厦门'<?php if ($area == "厦门") echo " selected"; ?>>厦门</option>
			<option value='大连'<?php if ($area == "大连") echo " selected"; ?>>大连</option>
			<option value='常州'<?php if ($area == "常州") echo " selected"; ?>>常州</option>
			<option value='石家庄'<?php if ($area == "石家庄") echo " selected"; ?>>石家庄</option>
			<option value='东莞'<?php if ($area == "东莞") echo " selected"; ?>>东莞</option>
			<option value='安徽'<?php if ($area == "安徽") echo " selected"; ?>>安徽</option>
			<option value='福建'<?php if ($area == "福建") echo " selected"; ?>>福建</option>
			<option value='甘肃'<?php if ($area == "甘肃") echo " selected"; ?>>甘肃</option>
			<option value='广东'<?php if ($area == "广东") echo " selected"; ?>>广东</option>
			<option value='广西'<?php if ($area == "广西") echo " selected"; ?>>广西</option>
			<option value='贵州'<?php if ($area == "贵州") echo " selected"; ?>>贵州</option>
			<option value='海南'<?php if ($area == "海南") echo " selected"; ?>>海南</option>
			<option value='河北'<?php if ($area == "河北") echo " selected"; ?>>河北</option>
			<option value='黑龙江'<?php if ($area == "黑龙江") echo " selected"; ?>>黑龙江</option>
			<option value='河南'<?php if ($area == "河南") echo " selected"; ?>>河南</option>
			<option value='湖北'<?php if ($area == "湖北") echo " selected"; ?>>湖北</option>
			<option value='湖南'<?php if ($area == "湖南") echo " selected"; ?>>湖南</option>
			<option value='江苏'<?php if ($area == "江苏") echo " selected"; ?>>江苏</option>
			<option value='江西'<?php if ($area == "江西") echo " selected"; ?>>江西</option>
			<option value='吉林'<?php if ($area == "吉林") echo " selected"; ?>>吉林</option>
			<option value='辽宁'<?php if ($area == "辽宁") echo " selected"; ?>>辽宁</option>
			<option value='内蒙古'<?php if ($area == "内蒙古") echo " selected"; ?>>内蒙古</option>
			<option value='宁夏'<?php if ($area == "宁夏") echo " selected"; ?>>宁夏</option>
			<option value='青海'<?php if ($area == "青海") echo " selected"; ?>>青海</option>
			<option value='山东'<?php if ($area == "山东") echo " selected"; ?>>山东</option>
			<option value='山西'<?php if ($area == "山西") echo " selected"; ?>>山西</option>
			<option value='陕西'<?php if ($area == "陕西") echo " selected"; ?>>陕西</option>
			<option value='四川'<?php if ($area == "四川") echo " selected"; ?>>四川</option>
			<option value='新疆'<?php if ($area == "新疆") echo " selected"; ?>>新疆</option>
			<option value='西藏'<?php if ($area == "西藏") echo " selected"; ?>>西藏</option>
			<option value='云南'<?php if ($area == "云南") echo " selected"; ?>>云南</option>
			<option value='浙江'<?php if ($area == "浙江") echo " selected"; ?>>浙江</option>
			<option value='美国,英国,法国,瑞士,澳洲,新西兰,加拿大,奥地利,韩国,日本,德国,意大利,西班牙,俄罗斯,泰国,印度,荷兰,新加坡,其它国家'<?php if ($area == "美国,英国,法国,瑞士,澳洲,新西兰,加拿大,奥地利,韩国,日本,德国,意大利,西班牙,俄罗斯,泰国,印度,荷兰,新加坡,其它国家") echo " selected"; ?>>海外</option>
			<option value='other'<?php if ($area == "other") echo " selected"; ?>>其它</option>
		  </select></li>
				</ul>
	  </div>
			  	<div class="list">
				  <ul><li><a href="<?=$action_url?>?cid=<?=$cid?>&start_price=<?=$start_price?>&end_price=<?=$end_price?>&sort=<?=$sort?>&area=<?=urlencode($area)?>&guarantee=<?=$guarantee?>&list=0&q=<?=urlencode($q)?>&nick=<?=urlencode($nick)?>&page=<?=$page?>" class="noline"><img src="images/list<?=$list?>.gif" alt="小图片模式" width="42" height="16" /></a>&nbsp;&nbsp;<a href="<?=$action_url?>?cid=<?=$cid?>&start_price=<?=$start_price?>&end_price=<?=$end_price?>&sort=<?=$sort?>&area=<?=urlencode($area)?>&guarantee=<?=$guarantee?>&list=1&q=<?=urlencode($q)?>&nick=<?=urlencode($nick)?>&page=<?=$page?>" class="noline"><img src="images/liebiaoda<?=$list?>.gif" alt="大图片模式" width="42" height="16" /></a></li><li style="margin-top:3px; width:200px; margin-left:20px; text-align:center;">排序：<select name="sort" class="smallinput">
					<option value="commissionNum_desc"<?php if ($sort == "commissionNum_desc") echo " selected"; ?>>销量从高→低</option>
					<option value="commissionNum_asc"<?php if ($sort == "commissionNum_asc") echo " selected"; ?>>销量从低→高</option>
					<option value="price_desc"<?php if ($sort == "price_desc") echo " selected"; ?>>价格从高→低</option>
					<option value="price_asc"<?php if ($sort == "price_asc") echo " selected"; ?>>价格从低→高</option>
					<option value="credit_desc"<?php if ($sort == "credit_desc") echo " selected"; ?>>信用从高→低</option>
					<option value="delistTime_desc"<?php if ($sort == "delistTime_desc") echo " selected"; ?>>下架时间从高→低</option>
					<option value="delistTime_asc"<?php if ($sort == "delistTime_asc") echo " selected"; ?>>下架时间从低→高</option>
				  </select></li>
				  <li style="width:200px; margin-left:50px;">
	<?php if($sort=="credit_desc"){?>
		<a href="<?=$action_url?>?cid=<?=$cid?>&page=<?=$page?>&start_price=<?=$start_price?>&end_price=<?=$end_price?>&sort=credit_desc&area=<?=$area?>&guarantee=<?=$guarantee?>&q=<?=urlencode($q)?>&nick=<?=urlencode($nick)?>"><img src="images/xinyong1.gif" width="44" height="20" border="0" alt="信用从高到低" /></a>
	<?php }else{?>
		<a href="<?=$action_url?>?cid=<?=$cid?>&page=<?=$page?>&start_price=<?=$start_price?>&end_price=<?=$end_price?>&sort=credit_desc&area=<?=$area?>&guarantee=<?=$guarantee?>&q=<?=urlencode($q)?>&nick=<?=urlencode($nick)?>"><img src="images/xinyong0.gif" width="44" height="20" border="0" alt="信用" /></a>
	<?php }?>
	<?php if($sort=="price_asc"||$sort=="price_desc"){?>
		<?php if($sort=="price_asc"){?><a href="<?=$action_url?>?cid=<?=$cid?>&page=<?=$page?>&start_price=<?=$start_price?>&end_price=<?=$end_price?>&sort=price_desc&area=<?=$area?>&guarantee=<?=$guarantee?>&q=<?=urlencode($q)?>&nick=<?=urlencode($nick)?>"><img src="images/jiage1.gif" width="44" height="20" border="0" alt="价格从低到高" /></a>
		<?php }else{?>
		<a href="<?=$action_url?>?cid=<?=$cid?>&page=<?=$page?>&start_price=<?=$start_price?>&end_price=<?=$end_price?>&sort=price_asc&area=<?=$area?>&guarantee=<?=$guarantee?>&q=<?=urlencode($q)?>&nick=<?=urlencode($nick)?>"><img src="images/jiage0.gif" width="44" height="20" border="0" alt="价格从高到低" /></a>
		<?php }?>
	<?php }else{ ?>
		<a href="<?=$action_url?>?cid=<?=$cid?>&page=<?=$page?>&start_price=<?=$start_price?>&end_price=<?=$end_price?>&sort=price_asc&area=<?=$area?>&guarantee=<?=$guarantee?>&q=<?=urlencode($q)?>&nick=<?=urlencode($nick)?>"><img src="images/jiage2.gif" width="44" height="20" border="0" alt="价格" /></a>
	<?php }?>
	
	<?php if($sort=="commissionNum_asc"||$sort=="commissionNum_desc"){?>
		<?php if($sort=="commissionNum_asc"){?><a href="<?=$action_url?>?cid=<?=$cid?>&page=<?=$page?>&start_price=<?=$start_price?>&end_price=<?=$end_price?>&sort=commissionNum_desc&area=<?=$area?>&guarantee=<?=$guarantee?>&q=<?=urlencode($q)?>&nick=<?=urlencode($nick)?>"><img src="images/chengjiao0.gif" width="44" height="20" border="0" alt="成交量从低到高" /></a>
		<?php }else{?>
		<a href="<?=$action_url?>?cid=<?=$cid?>&page=<?=$page?>&start_price=<?=$start_price?>&end_price=<?=$end_price?>&sort=commissionNum_asc&area=<?=$area?>&guarantee=<?=$guarantee?>&q=<?=urlencode($q)?>&nick=<?=urlencode($nick)?>"><img src="images/chengjiao1.gif" width="44" height="20" border="0" alt="成交量从高到低" /></a>
		<?php }?>
	<?php }else{ ?>
		<a href="<?=$action_url?>?cid=<?=$cid?>&page=<?=$page?>&start_price=<?=$start_price?>&end_price=<?=$end_price?>&sort=commissionNum_desc&area=<?=$area?>&guarantee=<?=$guarantee?>&q=<?=urlencode($q)?>&nick=<?=urlencode($nick)?>"><img src="images/chengjiao2.gif" width="44" height="20" border="0" alt="成交量" /></a>
	<?php }?>
		</li>
				  </ul>
	  			</div>
			</div><input name="nick" type="hidden" value="<?=$nick?>" /><input name="list" type="hidden" value="<?=$list?>" /></form>